<?php

declare(strict_types=1);
/**
 * This file is part of bearing-web.
 *
 * @link     https://www.bearing.cn/
 * @contact  tech@bearing.cn
 * @license  https://gitee.com/cppo/bearing_web/-/blob/master/README.md
 */
return [
    // 资讯
    ['class' => 'yii\rest\UrlRule', 'controller' => 'news'],
    ['class' => 'yii\rest\UrlRule', 'controller' => 'orders'],
    ['class' => 'yii\rest\UrlRule', 'controller' => 'messages'],
    ['class' => 'yii\rest\UrlRule', 'controller' => 'products'],
    ['class' => 'yii\rest\UrlRule', 'controller' => 'miniatures', 'extraPatterns' => [
        'GET filter' => 'filter',
    ]],
    ['class' => 'yii\rest\UrlRule', 'controller' => 'thin-sections', 'extraPatterns' => [
        'GET filter' => 'filter',
    ]],
    ['class' => 'yii\rest\UrlRule', 'controller' => 'angular-contact-balls', 'extraPatterns' => [
        'GET filter' => 'filter',
    ]],
    ['class' => 'yii\rest\UrlRule', 'controller' => 'flanged-balls', 'extraPatterns' => [
        'GET filter' => 'filter',
    ]],
    ['class' => 'yii\rest\UrlRule', 'controller' => 'users', 'extraPatterns' => [
        'POST login' => 'login',
        'POST register' => 'register',
    ],
    ],
];
